#include <iostream>
#include <armadillo>
#include <sys/time.h>

using namespace std;
using namespace arma;

int main()
{
    Mat<double> A = mat(1000, 1000);
    A.ones();

    struct timeval tp;
    gettimeofday(&tp, NULL);
    long int start = tp.tv_sec * 1000 + tp.tv_usec / 1000;
    
    Mat<double> B = 2 * A * A + 3 * A;

    gettimeofday(&tp, NULL);
    long int end = tp.tv_sec * 1000 + tp.tv_usec / 1000;
    cout << "Arma use: " << end - start << "ms" << endl;
    getchar();
    return 0;
}
